package com.huawei.statistics.pojo.index;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;


@Table(name="t_banner")
public class Banner {
	
	
	private Long id;
	private String title;		//标题
	private String image;		//图片地址
	private Integer sort;		//排序
	private Date createDate;	//创建时间
	private int type;
	private String url;
	private Boolean del;
	
	@Column(name="id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="title")
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name="image")
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	
	@Column(name="sort")
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Column(name="createDate")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


	@Column(name = "del")
	public Boolean getDel() {
		return del;
	}

	public void setDel(Boolean del) {
		this.del = del;
	}


	@Column(name = "url")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name="type")
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Banner{" +
				"id=" + id +
				", title='" + title + '\'' +
				", image='" + image + '\'' +
				", sort=" + sort +
				", createDate=" + createDate +
				", url='" + url + '\'' +
				", del=" + del +
				'}';
	}
}
